package stu.day9_day18;

public class LeetCode9 {

    public boolean isPalindrome(int x) {

        String str = String.valueOf(x);
        String rev = new StringBuilder(str).reverse().toString();
        return str.equals(rev);

    }
}
